package com.ecoolex.discount.sales.core.mapper;

import com.ecoolex.discount.sales.entity.DiscountProductVouchers;
import com.ecoolex.discount.sales.entity.DiscountProductVouchersExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface DiscountProductVouchersMapper {
    long countByExample(DiscountProductVouchersExample example);

    int deleteByExample(DiscountProductVouchersExample example);

    int deleteByPrimaryKey(Integer productId);

    int insert(DiscountProductVouchers record);

    int insertSelective(@Param("record") DiscountProductVouchers record, @Param("selective") DiscountProductVouchers.Column ... selective);

    DiscountProductVouchers selectOneByExample(DiscountProductVouchersExample example);

    List<DiscountProductVouchers> selectByExample(DiscountProductVouchersExample example);

    DiscountProductVouchers selectByPrimaryKey(Integer productId);

    DiscountProductVouchers selectByPrimaryKeyWithLogicalDelete(@Param("productId") Integer productId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") DiscountProductVouchers record, @Param("example") DiscountProductVouchersExample example, @Param("selective") DiscountProductVouchers.Column ... selective);

    int updateByExample(@Param("record") DiscountProductVouchers record, @Param("example") DiscountProductVouchersExample example);

    int updateByPrimaryKeySelective(@Param("record") DiscountProductVouchers record, @Param("selective") DiscountProductVouchers.Column ... selective);

    int updateByPrimaryKey(DiscountProductVouchers record);

    int batchInsert(@Param("list") List<DiscountProductVouchers> list);

    int batchInsertSelective(@Param("list") List<DiscountProductVouchers> list, @Param("selective") DiscountProductVouchers.Column ... selective);

    int logicalDeleteByExample(@Param("example") DiscountProductVouchersExample example);

    int logicalDeleteByPrimaryKey(Integer productId);
}